﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing;

namespace Greyhound
{
    class Fusion
    {
        public void DrawTest(PictureBox p)
        {
            p.Image = new Bitmap(p.Width, p.Height);
            using (Graphics g = Graphics.FromImage(p.Image))
            {
                g.FillRectangle(new SolidBrush(Color.White), 0, 0, p.Width, p.Height);
            }
            using (Font myFont = new Font("Arial", 14))
            {
                Graphics g = Graphics.FromImage(p.Image);
                g.DrawString("Tester!", myFont, Brushes.Black, new Point(2, 2));
                //p.Refresh();
            }
            //Graphics g = p.CreateGraphics();
            //System.Drawing.Font drawfont = new System.Drawing.Font("Arial", 12);
            //TextRenderer.DrawText(g, "Test Text", drawfont, new Point(10, 10), SystemColors.ControlText);
        }
    }
}
